import { Module } from '@nestjs/common'
import { DatabaseModule } from '@app/comm/database/database.module'
import { UserModule } from './user/user.module'
import { DepartmentModule } from './department/department.module'
import { AuthModule } from './auth/auth.module'
import { APP_GUARD } from '@nestjs/core'
import { AuthGuard } from './auth/auth.guard'
@Module({
  imports: [DatabaseModule, UserModule, DepartmentModule, AuthModule],
  controllers: [],
  providers: [
    {
      provide: APP_GUARD,
      useClass: AuthGuard,
    },
  ],
})
export class SystemAppModule {}
